package com.samphanie.auiu.auth.service;

import com.samphanie.auiu.mbg.model.User;

import java.util.Optional;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
public interface IUserCacheService {

    String cacheUser(User user);

    Optional<User> retrieveUser(String mfaId);

    Optional<User> verifyTotp(String mfaId, String code);
}
